Skip to content

Support shuffle_vector_exprt in goto programs #6645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

tautschnig
Copy link
Collaborator

de4557f added support for _builtin_shuffle/__builtin_shufflevector via
a shuffle_vector_exprt. This expression, however, was lowered right away
in the C front end, making it unavailable to other language front-ends.
By moving the lowering to remove_vector there no longer is such a
limitation. Kani will be able to use it directly for Rust programs.

Regression test cbmc/gcc_vector3 continues to pass, demonstrating that
processing via the C front-end works as before.

Fixes: #6297

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@codecov
Copy link

codecov bot commented Feb 7, 2022

Codecov Report

Merging #6645 (eec8e61) into develop (afc53d8) will increase coverage by 0.00%.
The diff coverage is 77.77%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #6645   +/-   ##
========================================
  Coverage    76.73%   76.73%           
========================================
  Files         1579     1579           
  Lines       181999   182012   +13     
========================================
+ Hits        139652   139665   +13     
  Misses       42347    42347           
Impacted Files Coverage Δ
...rc/ansi-c/c_typecheck_gcc_polymorphic_builtins.cpp 76.98% <33.33%> (ø)
src/goto-programs/remove_vector.cpp 96.68% <100.00%> (+0.11%) ⬆️
src/ansi-c/c_expr.h 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f175c9...eec8e61. Read the comment docs.

de4557f added support for _builtin_shuffle/__builtin_shufflevector via
a shuffle_vector_exprt. This expression, however, was lowered right away
in the C front end, making it unavailable to other language front-ends.
By moving the lowering to `remove_vector` there no longer is such a
limitation. Kani will be able to use it directly for Rust programs.

Regression test cbmc/gcc_vector3 continues to pass, demonstrating that
processing via the C front-end works as before.

Fixes: diffblue#6297
@tautschnig tautschnig force-pushed the features/shuffle_vector-middle-end branch from 9216194 to eec8e61 Compare February 7, 2022 21:25
@kroening kroening assigned tautschnig and unassigned kroening Feb 8, 2022
@tautschnig tautschnig merged commit 770d791 into diffblue:develop Feb 8, 2022
@tautschnig tautschnig deleted the features/shuffle_vector-middle-end branch February 8, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make shuffle_vector_exprt available to other frontends
3 participants